package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("room_reserve")
public class RoomReserveDao {
	@Name
	@Prev( @SQL("select generate_reserveNo('YD');") )
	private String reserveId; 	// 预定单号
	@Column
	private String presetTime;	// 预定时间
	@Column
	private String roomNo;		// 预定房间编号
	@Column
	private int duration;		// 预定时长
	@Column
	private int holdTime;		// 保留时间
	@Column
	private double deposit;	// 预收金额
	@Column
	private String name;		// 联系人
	@Column
	private String phone;		// 联系电话
	@Column
	private String createTime; // 创建时间
	@Column
	private boolean valid;		// 是否有效
	@Column
	private String comment;		// 备注
	
	public String getReserveId() {
		return reserveId;
	}
	public void setReserveId(String reserveId) {
		this.reserveId = reserveId;
	}
	public String getPresetTime() {
		return presetTime;
	}
	public void setPresetTime(String presetTime) {
		this.presetTime = presetTime;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public int getHoldTime() {
		return holdTime;
	}
	public void setHoldTime(int holdTime) {
		this.holdTime = holdTime;
	}
	public double getDeposit() {
		return deposit;
	}
	public void setDeposit(double deposit) {
		this.deposit = deposit;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public boolean isValid() {
		return valid;
	}
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
